<?php
		$siteurl = get_bloginfo('template_url');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<title><?php
	/*
	 * Print the <title> tag based on what is being viewed.
	 */
	global $page, $paged;

	wp_title( '|', true, 'right' );

	// Add the blog name.
	bloginfo( 'name' ); 
	// Add the blog description for the home/front page.
	$site_description = get_bloginfo( 'description', 'display' );
	if ( $site_description && ( is_home() || is_front_page() ) )
		echo " | $site_description";

	// Add a page number if necessary:
	if ( $paged >= 2 || $page >= 2 )
		echo ' | ' . sprintf( __( 'Page %s', 'Beautiful_women' ), max( $paged, $page ) );

	?></title>
<script language="javascript" type="text/javascript" src="<?php echo $siteurl ?>/js/jquery-1.4.4.min.js"></script>
<script language="javascript" type="text/javascript" src="<?php echo $siteurl ?>/js/index.js"></script>
 <link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo( 'stylesheet_url' ); ?>" />
</head>
<body>
	<div class="content">
		<div id="top">
			<span id="huanying"><img src="<?php echo $siteurl ?>/images/topfangzi.gif" height="12" width="12" id="fang" />Welcome！</span>
			<div id="login">
				<form action="" method="post">
					<input type="text" class="loginborder" />
					<input type="password" class="loginborder"/>
					<input type="submit" id="submit" value="LOGIN" title="LOGIN"/>
				</form>
			</div>
			<span id="top_right"></span>
		</div>
		<!-- top end -->
		<div id="logo">
			<span id="logoimg"><img src="<?php echo $siteurl ?>/images/logo_en.gif" height="84" title="PRETIY WOMEN" alt="PRETIY WOMEN" /></span>
			<span id="banner"><img src="<?php echo $siteurl ?>/images/banner_en.jpg" height="93" title="PRETIY WOMEN" alt="PRETIY WOMEN" /></span>
		</div>
		<div id="navibar">
		<?php 
		   if(is_home()){
		 	echo '<ul><li id="index">index</li></ul>';
		   }else{
		   	echo '<ul><li class="menu"><a href="/">index</a></li></ul>';
		   }
			//当前页面分类ID
			$nowcatid;
			
			$nowcatid = $_GET["nowcatid"];
		 
			  $categories = get_categories();
 
			  // 循环所有分类
			  foreach ($categories as $cat) {
			    $catid = $cat->cat_ID;
			    $catname = $cat->name;
			    if($catname == 'Uncategorized'){
			    	continue;
			    }
		?>
			  <?php
			  
			  //我自己的本地pageid362 网站上的pageid=355
			  	if($nowcatid == $catid){
			   ?>
			   <ul>
				<li id="index"><?php echo $catname ?></li>
			   </ul>
			<?php } else{ ?>  
				<ul class="menu_left">
					<li class="menu"><a href="<?php bloginfo('url');?>/?page_id=355&nowcatid=<?php echo $catid ?>"><?php echo $catname ?></a></li>
				</ul>
			 <?php } ?> 
		 <?php } ?>
		</div>
		<!-- navibar end -->
	</div>